package com.prs.crm.domain.assets;

import javax.persistence.CascadeType;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import com.prs.crm.domain.BaseEntity;
/**
 * @author liaopinghong
 * @version 2012-6-5 14:44:35 资产明细
 * */
@Entity
@Table(name="ass_detail")
public class AssetsDetail extends BaseEntity{
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	@Id
	@GeneratedValue(strategy=GenerationType.AUTO)
	private int id;
	/**配置名称*/          
	private String name;
	/**规格型号*/          
	private String guige;
	/**单位*/          
	private String units;
	/**数量*/          
	private String number;
	/**配置备注*/          
	private String remark;
	@ManyToOne(cascade={CascadeType.ALL})
	private AssetsRegister assetsRegister;
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getGuige() {
		return guige;
	}
	public void setGuige(String guige) {
		this.guige = guige;
	}
	public String getUnits() {
		return units;
	}
	public void setUnits(String units) {
		this.units = units;
	}
	public String getNumber() {
		return number;
	}
	public void setNumber(String number) {
		this.number = number;
	}
	public String getRemark() {
		return remark;
	}
	public void setRemark(String remark) {
		this.remark = remark;
	}
	public AssetsRegister getAssetsRegister() {
		return assetsRegister;
	}
	public void setAssetsRegister(AssetsRegister assetsRegister) {
		this.assetsRegister = assetsRegister;
	} 
	
}
